package com.jl.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 设备型号表
 * </p>
 *
 * @author JiangJian
 * @since 2019-03-06
 */

@TableName("model")
public class Model implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 设备型号名称
     */
    private String name;

    /**
     * 设备型号描述
     */
    private String description;

    /**
     * 新的配件列表
     * 在新增时使用
     */
    @TableField(exist = false)
    private List<Long> newComponentList;

    /**
     * 旧的配件列表
     * 在编辑时用于辅助判断配件是否修改了
     */
    @TableField(exist = false)
    private List<Long> oldComponentList;

    /**
     * 判断编辑设备部位信息的时候是否修改了绑定的配件信息
     */
    @TableField(exist = false)
    private boolean editComponent;

    /**
     * 状态码：暂未定义
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 创建者id，如果值为0则表示系统导入
     */
    private Long createId;

    /**
     * 修改时间
     */
    private Date gmtModified;

    /**
     * 修改者id
     */
    private Long modifyId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Long> getNewComponentList() {
        return newComponentList;
    }

    public void setNewComponentList(List<Long> newComponentList) {
        this.newComponentList = newComponentList;
    }

    public List<Long> getOldComponentList() {
        return oldComponentList;
    }

    public void setOldComponentList(List<Long> oldComponentList) {
        this.oldComponentList = oldComponentList;
    }

    public boolean isEditComponent() {
        return editComponent;
    }

    public void setEditComponent(boolean editComponent) {
        this.editComponent = editComponent;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }
}
